USE [PaltopDatabase]
GO

IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_FeedList_Account1]') AND parent_object_id = OBJECT_ID(N'[dbo].[FeedList]'))
ALTER TABLE [dbo].[FeedList] DROP CONSTRAINT [FK_FeedList_Account1]
GO

USE [PaltopDatabase]
GO

/****** Object:  Table [dbo].[FeedList]    Script Date: 02/06/2012 19:45:12 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FeedList]') AND type in (N'U'))
DROP TABLE [dbo].[FeedList]
GO

USE [PaltopDatabase]
GO

/****** Object:  Table [dbo].[FeedList]    Script Date: 02/06/2012 19:45:12 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[FeedList](
	[FeedID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](50) NOT NULL,
	[link] [nvarchar](max) NOT NULL,
	[Description] [nvarchar](max) NOT NULL,
	[AccountID] [int] NOT NULL,
	[rssLink] [nvarchar](max) NOT NULL,
 CONSTRAINT [PK_FeedList] PRIMARY KEY CLUSTERED 
(
	[FeedID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[FeedList]  WITH CHECK ADD  CONSTRAINT [FK_FeedList_Account1] FOREIGN KEY([AccountID])
REFERENCES [dbo].[Account] ([AccountID])
GO

ALTER TABLE [dbo].[FeedList] CHECK CONSTRAINT [FK_FeedList_Account1]
GO


